#ifndef MAPITEM_H
#define MAPITEM_H

#include <boost/serialization/base_object.hpp>

class Item;

class MapItem : public Item{
public:
	MapItem();

	void setWalkable(bool);
	void setPortal(bool n);
	void setItem(bool n);
	bool getWalkable();
	bool isPortal();
        bool containsItem();

private:
	friend class boost::serialization::access;
	template <class Archive>
	void serialize(Archive & ar, const unsigned int version){
		ar & boost::serialization::base_object<Item>(*this);
		ar & walkable_;
		ar & containsItem_;
		ar & isPortal_;
	}
	
	bool walkable_;
	bool containsItem_;
	bool isPortal_;
	
};

#endif
